package strategy;

import java.sql.*;

public abstract class DatabaseStrategy {

    protected String server;
    protected String databaseName;
    protected String user;
    protected String passwd;

    public DatabaseStrategy(String server, String databaseName, String user, String passwd) {
        this.server = server;
        this.databaseName = databaseName;
        this.user = user;
        this.passwd = passwd;
    }

    public abstract void loadDriver() throws ClassNotFoundException;

    public abstract String generateURL();

    public abstract String format(Object value);

}
